package com.woniuxy.contract.nacosdiscovery;/* *
@author 张鹏
@create 2021-11-15 14:35
*/

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@EnableDiscoveryClient
@Configuration
public class NacosDiscoveryConfiguration {
    @Bean
    public IRule rule(){
        return new RandomRule();
    }
}
